<?php
/**
 * @version		1.0.0
 * @category	Anahita Social Simple Blogs
 * @copyright	Copyright (C) 2008 - 2010 rmdStudio Inc. and Peerglobe Technology Inc. All rights reserved.
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html>
 * @link     	http://www.anahitapolis.com
 */

/**
 
 *
 */
class ComQuestionsModelQuestion extends AnSeMedium
{
	/**
	 * Describe the entity
	 * 
	 * @param KConfig $config
	 * @return void
	 */	
	public static function describe($config)
	{
		$config->append(array(
			'relationships' => array(
				'has_many_choices'
			)
		));
		parent::describe($config);	
		
		$mapper = $config->mapper;
		
		//create an inverse relationship for the owner
		//i.e. $owner->posts
		$mapper->getProperty('owner')->setInverseRelationship();
	}	
}